<?php
/**
 * author: Zhang Rui
 * github: https://github.com/zhangrui-git
 * mail: zhangruirui@zhangruirui.com
 * create: 2021/6/27 下午5:51
 */

require_once 'stage.php';

$w = 6;
$h = 13;
$c = Stage::Count($w, $h);
$map1 = Stage::NewMap($w, $h);
for ($i = 0; $i < 20; $i++) {
    $n = mt_rand(1, 71);
    $coor = Stage::NumberToCoordinate($map1, $n);
    Stage::Point($map1, $coor[0], $coor[1], 9);
}
$start = mt_rand(1, 33);
$coor1 = Stage::NumberToCoordinate($map1, $start);
Stage::Point($map1, $coor1[0], $coor1[1], 1);


Stage::Render($map1);
